//
//	File: D3D9Config.cpp
//

#include "D3D9Config.h"
#include <d3dx9shader.h>

COyD3D9Config* COyD3D9Config::GetInstance()
{
	static COyD3D9Config instance;
	return &instance;
}

void COyD3D9Config::SetShaderVersion(unsigned int VSVer, unsigned int PSVer)
{
	m_MaxVSShaderVer = D3DSHADER_VERSION_MAJOR(VSVer)*10 + D3DSHADER_VERSION_MINOR(VSVer);
	m_MaxPSShaderVer = D3DSHADER_VERSION_MAJOR(PSVer)*10 + D3DSHADER_VERSION_MINOR(PSVer);

	m_VSShaderVer = m_MaxVSShaderVer;
	m_PSShaderVer = m_MaxPSShaderVer;
}
